﻿using System.Windows;
using System.Windows.Input;

namespace PLCWpfTest.Common.Extensions
{
    public static class WindowExtensions
    {
        public static void OnMouseDownMethod(this Window window, MouseButtonEventArgs e)
        {
            if (e.ChangedButton == MouseButton.Left && e.RoutedEvent.Name.Equals("MouseDown"))
            {
                window.DragMove();
            }
        }
    }
}
